package edu.sctu.zcy.month201505.day20150510;

/**
 * Created by user24 on 2015/5/10.
 */
public class RunnableDemo1 {

    public static void main(String[] args) {

        RunnableDemo runnableDemo1 = new RunnableDemo();
        runnableDemo1.getNameTwo("线程1");

        RunnableDemo runnableDemo2 = new RunnableDemo();
        runnableDemo2.getNameTwo("线程2");

        Thread thread1 = new Thread(runnableDemo1);
        Thread thread2 = new Thread(runnableDemo2);

        thread1.start();
        thread2.start();



    }
}
